/**
 * 
 */
package com.lanswon.qzsmk.base;

import java.util.HashMap;
import java.util.Map;

/**
 * @author sun
 *
 */
public class SystemManageContants {
	
	/**
	 * 青州市查询街道code
	 */
	public static final String cityCode="370781000000";
	/**
	 * 机构性质:政府机关-1
	 */
	public static final String ORG_PROPERTY_GOV = "1";
	
	/**
	 * 机构性质:国企-2
	 */
	public static final String ORG_PROPERTY_STATE_OWNED_ENTERPRISE = "2";
	
	/**
	 * 机构性质:企业-3
	 */
	public static final String ORG_PROPERTY_COMPANY = "3";
	
	/**
	 * 机构性质:个体-4
	 */
	public static final String ORG_PROPERTY_INDIVIDUAL = "4";
	
	/**
	 * 服务类型充值网点
	 */
	public static final String BRANCH_SERVER_TYPE_RECHARGE="1";
	
	/**
	 * 服务类型消费网点
	 */
	public static final String BRANCH_SERVER_TYPE_CONSUME="2";
	
	/**
	 * 服务类型综合网点
	 */
	public static final String BRANCH_SERVER_TYPE_All="3";
	
	
	/**
	 * 状态：未启用
	 */
	public static final String STATUS_DISABLE = "0";

	/**
	 * 状态：已启用
	 */
	public static final String STATUS_ENABLE = "1";
	
	/**
	 * 权限类型：菜单
	 */
	public static final String PERMISSIONS_TYPE_MENU = "1";
	
	/**
	 * 权限类型：按钮
	 */
	public static final String PERMISSIONS_TYPE_BUTTON = "2";
	
	/**
	 * 权限类型：url
	 */
	public static final String PERMISSIONS_TYPE_URL = "3";
	
	/**
	 * 节点分隔符
	 */
	public static final String  MENU_NODE_CUT= "/";
	
	/**
	 * 节点0
	 */
	public static final String  MENU_NODE_0= "0";
	
	/**
	 * 节点1
	 */
	public static final String  MENU_NODE_1= "1";
	
	/**
	 * 节点2
	 */
	public static final String  MENU_NODE_2= "2";
	
	/**
	 * 节点3
	 */
	public static final String  MENU_NODE_3= "3";

	/**
	 * 未选中
	 */
	public static final int NOT_SELECTED = 0;
	
	/**
	 * 部分选中
	 */
	public static final int PART_SELECTED = 1;

	/**
	 * 全部选中
	 */
	public static final int ALL_SELECTED = 2;
	
	
	public static String getServerTypeByCode(String code){
		String name="";
		switch (code) {
		case "1":
			name="充值网点";
			break;
		case "2":
			name="消费网点";
			break;
		case "3":
			name="综合网点";
			break;

		default:name="无";
			break;
		}
		return name;
	}
	
	/**
	 * 获取机构性质
	 * @param code
	 * @return
	 */
	public static String getOrgPropertyNameByCode(String code){
		
		String name="";
		switch (code) {
		case "1":
			name="政府机关";
			break;
		case "2":
			name="国企";
			break;
		case "3":
			name="企业";
			break;
		case "4":
			name="个体";
			break;

		default:name="无";
			break;
		}
		return name;
	}
	
	@SuppressWarnings({ "unchecked", "rawtypes", "serial" })
	public final static Map<String,String> map = new HashMap() {{    
	    put("1", "青州市智慧城市信息科技有限公司");    
	    put("2", "中国建设银行");    
	    put("3", "潍坊银行"); 
	}};  
	

}
